<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">中文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-enname" class="control-label col-xs-12 col-sm-2">英文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enname" data-rule="required" class="form-control" name="row[enname]" type="text" value="{$row.enname}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-dir" class="control-label col-xs-12 col-sm-2">目录:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dir" data-rule="" class="form-control" name="row[dir]" type="text" value="{$row.dir}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-parentList" class="control-label col-xs-12 col-sm-2">上级模型:</label>
        <div class="col-xs-12 col-sm-8">
          <select id="c-parentList" data-rule="" class="form-control selectpicker" name="row[pid]">
              <option value="0">请选择</option>
              {volist name="parentList" id="vo" key="k"}
                  {if $vo.pid eq 0}
                  <option value="{$vo.itemid}" {if $vo.itemid == $row.pid}selected="selected"{/if}>{$vo.name}</option>
                  {/if}
              {/volist}
          </select>
        </div>
    </div>

    <div class="form-group">
        <label for="c-catid" class="control-label col-xs-12 col-sm-2">类别:</label>
        <div class="col-xs-12 col-sm-8 line3">
            <div id="jscategoryselect22" class="selects3" data-pid="0">
                <a class="arrow"><img alt="arrowbottom" src="http://qd.andiff.net/netimages/arrow_bottom.png" /></a>
                <span class='selected3'>{$row.category.name}</span>
                <input type="hidden" id="catid" name="row[catid]" value="{$row.catid}" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[intro]" id="c-intro" cols="60" rows="5" class="form-control editor">{$row.intro}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">

            <button type="button" class="btn btn-primary" id="msql">生成数据表</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mcc">生成列缓存</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mcm">生成Model</button>
            <button type="button" class="btn btn-primary" id="mccon">生成Controller</button>
            <button type="button" class="btn btn-primary" id="mbt">生成编辑模板</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mlt">生成列表模板</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mjs">生成脚本</button>&nbsp;
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            <button type="button" class="btn btn-default returnback">返回</button>
            <button type="button" class="btn btn-default" id="mopen">开启</button>
            <button type="button" class="btn btn-default" id="mclose">关闭</button>
        </div>
    </div>
</form>
